package com.asohofrucol.dao;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;

@NoRepositoryBean
public interface BasicSaveDao<T, ID extends Serializable> extends
		JpaRepository<T, ID> {

	public <S extends T> S saveAndLog(S entity, String user);

	public <S extends T> S saveAndLogStatus(S entity, String user);

	public <S extends T> List<S> saveAndLog(List<S> entity, String user);

	public <S extends T> void deleteLogicallyAndLog(S entity, String user);

}
